<?php
/**
 * Created by xiaosong
 * E-mail:4155433@gmail.com
 * Date: 2019/9/26
 * Time: 15:00
 */

namespace App\Common\statement;


class CommonStatement
{
    const status = [
        1 => '正常',
        0 => '禁用',
    ];

    const allow_status = [
        1 => '上架',
        0 => '下架',
    ];

    const status_switch = [
        'on'  => ['value' => 1, 'text' => '正常', 'color' => 'success'],
        'off' => ['value' => 0, 'text' => '禁用', 'color' => 'default'],
    ];

    const posts_cate = [
        'on'  => ['value' => 1, 'text' => '文章', 'color' => 'success'],
        'off' => ['value' => 2, 'text' => '视频', 'color' => 'default'],
    ];

    const goods_switch = [
        'on'  => ['value' => 1, 'text' => '上架', 'color' => 'success'],
        'off' => ['value' => 0, 'text' => '下架', 'color' => 'default'],
    ];

    const default_switch = [
        'on'  => ['value' => 1, 'text' => '是', 'color' => 'success'],
        'off' => ['value' => 0, 'text' => '否', 'color' => 'default'],
    ];

    const job_default_switch = [
        'on'  => ['value' => 1, 'text' => '是', 'color' => 'success'],
        'off' => ['value' => 0, 'text' => '否', 'color' => 'default'],
    ];
    const job_default = 0;

    const base_switch = [
        'on'  => ['value' => 'on', 'text'  => '开启', 'color' => 'success'],
        'off' => ['value' => 'off', 'text' => '关闭', 'color' => 'default'],
    ];

    const exchang_status = [
        0 => '未审核',
        1 => '审核拒绝',
        2 => '已兑换'
    ];

    const votestatus = [
        0 => '未开始',
        1 => '进行中',
        2 => '已结束',
    ];

    const examstatus = [
        1 => '进行中',
        2 => '结束'
    ];

    const base_checks = [
        0 => '驳回',
        1 => '通过',
        2 => '待审核'
    ];

    const cash_type = [
        1 => '微信' ,
        2 => '支付宝' ,
        3 =>'银行卡'
    ];

    //配置项处理方式
    const field_type = [
        0 => '不做处理',
        1 => '根据英文逗号切割',
        2 => '根据回车切割'
    ];

    const banner_jump_type = [
        1 => '外部链接',
        2 => '商品详情',
        3 => '咨询详情',
    ];

    const organization_type = [
        1 => '科室',
        2 => '党支部'
    ];

    const banner_default_type = 1;

    const default_status = 1;
    const default_no_status = 0;

    const sex = [
        1 => '男',
        2 => '女'
    ];

    const default_sex = 2;

    //配置项类型
    const config_directors = [
        'text' => '输入框',
        'number' => '整数',
        'image' => '图片',
        'multipleImage' => '多图',
        'file' => '文件',
        'decimal' => '浮点数字',
        'textarea' => '文本',
        'editor' => '富文本(编辑器)',
        'tags' => '标签',
        'switch' => '开关'
    ];

    const coupon_status = [
        1 => '待使用',
        2 => '已使用',
        0 => '已过期'
    ];

    const voucher_status = [
        1 => '待使用',
        2 => '已核销',
//        0 => '已过期'
    ];

    const week_text = [
        1 => '星期一',
        2 => '星期二',
        3 => '星期三',
        4 => '星期四',
        5 => '星期五',
        6 => '星期六',
        0 => '星期天',
    ];

    const goods_type = [
        1 => '主产品',
        3 => '秒杀产品',
        2 => '其它',
    ];

    const order_status = [
        -1 => '已取消',
        0  => '待付款',
        1  => '待发货', //已付款(代发货)
        2  => '待收货', //(已发货)
        3  => '已收货',//(确认订单)
//        4 => '退款中',
//        5 => '已退款'
    ];

    const rebate_status = [
        1 => '已结算',
        2 => '未结算'
    ];

    const rebate_type = [
        1  => '下级购买商品返利',
        2  => '直邀购买会员返利'
    ];

    /**
     * 允许退款的订单
     */
    const order_refund_status = [
        0,
        1,
        2
    ];

    const order_cancel_status = [
        0
    ];

    const level_text = [
        1 => '普通用户',
        2 => '分管领导',
        3 => '主要领导',
    ];

    const level_vote = [
        1 => '好',
        2 => '较好',
        3 => '一般',
        4 => '较差',
    ];

    const cate_text = [
        1 => '消费者',
        2 => '导购员',
        3 => '业务员',
    ];

    /**
     * 支付方式
     */
    const pay_type = [
        1 => '支付宝',
        2 => '微信'
    ];


    const normal = [
        1,  2, 3,  6,
    ];

    const superiorInfo = "未绑定推荐人!";

    const news_type = [
        1 => '人社动态',
        2 => '党建园地'
    ];

    const social = [
        1 => '红色教育',
        2 => '广安革命',
        3 => '红色影视'
    ];

    const party = [
        1 => '支部动态',
        2 => '资料共享',
        3 => '党务知识'
    ];

    const cover_type = [
        1 => '文本',
        2 => '图片',
        3 => '视频'
    ];

    const templates_type = [
        10 => '按件数',
        20 => '按重量',
        3 => '按体积'
    ];

    const major_orders = [
        -1 => '已删除',
        0  => '待付款',
        1  => '待服务',
        2  => '已完成',
    ];

    const question_cate = [
        1=>'党史',
        2=>'文史'
    ];

    const question_type = [
        1 => '单选',
        2 => '多选'
    ];

    const notInRegion = "很抱歉，您的收货地址不在配送范围内";

}